package com.example.feign.fallback;

import com.example.entity.TShopUser;
import com.example.feign.UserFeignApi;
import org.springframework.stereotype.Component;

@Component
public class UserFeignFallback implements UserFeignApi {
    @Override
    public TShopUser get(Long id) {
        TShopUser user = new TShopUser();
        user.setId(id);
        user.setPassword("123456");
        user.setName("默认用户(降级)");
        user.setEmail("default@qq.com");
        user.setPhone("12345678901");
        return user;
    }
}
